package com.forenow.demo.Bank;

import java.util.Scanner;

public class cunkuan {
    public static void ck(){
        int sum=0;
        int sal=10000;
        Scanner sc = new Scanner(System.in);
        boolean flag = false;
        System.out.println("您的余额为" + sal);
        System.out.print("请输入您要存款的金额：");
        int money1=sc.nextInt();
        sal+=money1;
        System.out.println("您的余额为"+sal);
        System.out.println("是否继续操作（y/n）");
        String k = sc.next();
        if (k.equals("y")) {
            flag = true;
        } else {
            System.exit(0);
        }
    }
}
